package java8.myStream;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Test {
	public static void main(String[] args) {
		List<String> stringList = Arrays.asList("a1", "a2", "b1", "c2", "c1");
		String collect = stringList.stream()
				.collect(Collectors.joining(","));
		System.out.println(collect);

		System.out.println(stringList.stream().collect(Collectors.joining()));


	}
}
